<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/Statics/Home/image/djwy.ico" />
    <meta name="description" content="">
    <meta name="author" content="">
    <title>大集舞衣定制后台管理</title>
        
    <style type="text/css">
		#order th{text-align:center;line-height:30px;}
		#order td{text-align:center;line-height:30px;}
    .tdneed{width:22%;}
    .mysearch{width:300px;float:right;}
    .blockimage{width:30px;height:22px}
    .noneimage{position:absolute;width:210px;display:none;z-index:1;margin-top:-10;}
    .myneed{position:absolute;display:none;z-index:1;margin-top:-8px;width:300px;}
    .myaddress{position:absolute;display:none;z-index:1;}
    

    .page > th {text-align:center !important; vertical-align:middle !important;}
    .page > td {text-align:center; vertical-align:middle;}

    .page > .table { width:60% !important;}

    /* .prev {font-size:20px;}
    .next {font-size:20px;}
    .num {font-size:20px;}
    .current {font-size:20px;} */


    .page > .taborder{height:300px;}

    .page a, .page a:hover, .page .current {
      font-size:18px;
        display: inline-block;
        height: 25px;
        line-height: 25px;
        margin-right: 2px;
        padding: 0 10px;
        vertical-align: middle;
    }
    .page a {
        background-color: #f6ffff;
        border: 1px solid #d7dbdc;
        color: #404548;
    }
    .page a:hover, .page .current {
        background-color: #429EE2;
        color: #fff;
        text-decoration: none;
        vertical-align: middle;
    }
    .page .next, .page .prev {
        font-family: "宋体";
    }
    

    </style>

    <!-- Bootstrap Core CSS -->
    <link href="/Statics/admin/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/Statics/admin/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- Timeline CSS -->
    <link href="/Statics/admin/dist/css/timeline.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/Statics/admin/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="/Statics/admin/bower_components/morrisjs/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/Statics/admin/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="JavaScript:;">后台管理平台</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                
                
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-bell fa-fw"></i>  <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-comment fa-fw"></i> New Comment
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                    <span class="pull-right text-muted small">12 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-envelope fa-fw"></i> Message Sent
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-tasks fa-fw"></i> New Task
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Alerts</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-alerts -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <!-- <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
                        </li>
                        <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                        </li> -->
                        <li class="divider"></li>
                        <li><a href="/index.php/Dzdjwyadmin/Index/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                            </div>
                            <!-- /input-group -->
                        </li>

                        <li>
                            <a href="<?php echo U('dzdjwyadmin/index/index');?>"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> 后台首页</a>
                        </li>
                        
                        <li class="active">
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level collapse in" aria-expanded="true" style="">
                                <li>
                                    <a href="<?php echo U('dzdjwyadmin/index/order');?>">查看订单</a>
                                </li>
                                
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        
                        
                        
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>
        <!-- 后台中间部分 -->
        <div id="page-wrapper">
        

        
        

            
<!-- 模板引用地方 -->

  <!-- <div class="btn-group">
      <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">选择显示几条数据 <span class="caret"></span></button>
      <ul class="dropdown-menu">
        <li><a href="JavaScript:;" class="myselect" data-num='15'>15 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='30'>30 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='45'>45 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='60'>60 条</a></li>
  
      </ul>
    </div> -->
  
  <form action="/index.php/Dzdjwyadmin/Index/search" method='get'>
  <div class="input-group mysearch custom-search-form">
      <input class="form-control" name='content' placeholder="输入申请人名字.." type="text">
      <span class="input-group-btn">
      <button class="btn btn-default btn-sub">
          <i class="fa fa-search"></i>
      </button>
  </span>
  </div>
  </form>
                            
                        

	<!-- <div class="bs-example" data-example-id="hoverable-table"> -->
    <table id='order' class="table table-hover">
      <thead>
        <tr>
          <!-- <th style="min-width:6%">订单ID</th>
          <th style="min-width:12%">申请人/单位名称</th>
          <th style="min-width:10%">电话号码</th>
          <th style="min-width:7%">定制数量</th>
          <th style="min-width:15%">详细地址</th>
          <th style="min-width:9%">参考图片</th>
          <th style="min-width:30%">定制需求</th> -->
          <th>订单ID</th>
          <th>申请人/单位名称</th>
          <th>电话号码</th>
          <th>定制数量</th>
          <th>创建时间</th>
          <th>地址</th>
          <th>参考图片</th>
          <th>定制需求</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
  <?php  $str = '徐会浪费哈塑料口吉林省的减肥的吉林省法发顺丰苟富贵'; foreach ($data as $k => $v) { ?>	
        <tr class='mytr'>
          <th scope="row"><?php echo ($v['id']); ?></th>
          <td><?php echo ($v['username']); ?></td>
          <td><?php echo ($v["phone"]); ?></td>
          <td><?php echo ($v["number"]); ?></td>
          <td><?php echo ($v["ctime"]); ?></td>
          <td class='tdaddress'><span><?php echo substr($v['address'],0,30).'...' ?></span>
              <div class="myaddress">
                  <div class="well">
                      <p><?php echo ($v["address"]); ?></p>
                  </div>
              </div>
          </td>
          <td class='tdimg'><img class='blockimage' src="/Statics/<?php echo ($v['photo'][0]); ?>" alt="未上传">...
              <img class='noneimage' src="/Statics/<?php echo ($v['photo'][0]); ?>" alt="空">
              <!-- <img class='noneimage' src="/Statics/Uploads\2017-03-23/1.jpg" alt="空"> -->
          </td>
          <td class='tdneed'><span><?php echo substr($v['need'],0,40) ?></span>
              <div class="myneed">
                <div class="panel panel-green">
                    <div class="panel-heading">
                        定制需求
                    </div>
                    <div class="panel-body">
                        <p><?php echo ($v["need"]); ?></p>
                    </div>
                    <div class="panel-footer">
                        大集舞衣定制平台
                    </div>
                </div>
                <!-- /.col-lg-4 -->
              </div>
          </td>
          <td><!-- str_replace([3,4],['已拒绝','拒绝受理'],3); -->
            <!-- <?php echo str_replace([0,1,2],['待处理','处理中','完成'],$v['status']); ?> -->
            <button type="button" class="btn btn-<?php echo str_replace([0,1,2],['warning','info','success'],$v['status']); ?> btn-circle"><?php echo str_replace([0,1,2],['待处理','处理中','完成'],$v['status']); ?></button>
            <!-- <button type="button" class="btn btn-warning btn-circle">待受理</button> -->
            <!-- <button type="button" class="btn btn-info btn-circle">处理中</button> -->
            <!-- <button type="button" class="btn btn-success btn-circle">完成</button> -->
          </td>
          <td><a href="/index.php/Dzdjwyadmin/index/seeOrder/orderId/<?php echo ($v['id']); ?>"><button type="button" class="btn btn-primary btn-circle">查看</button></a></td>  
        </tr>

   <?php
 } ?>
        <!-- <tr>
          <th scope="row">2</th>
          <td>Jacob</td>
          <td>Thornton</td>
          <td>@fat</td>
          <td>@mdo</td>
          <td>@mdo</td>
          <td>@fat</td>
          <td>@fat</td>
        </tr> -->
        
      </tbody>
    </table>
    <center>
    <div class='page'>
      <?php echo ($page); ?>
    </div>
    </center>
    
    
    <!-- </div> -->







        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="/Statics/admin/bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/Statics/admin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/Statics/admin/bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="/Statics/admin/bower_components/raphael/raphael-min.js"></script>
    <script src="/Statics/admin/bower_components/morrisjs/morris.min.js"></script>
    <script src="/Statics/admin/js/morris-data.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="/Statics/admin/dist/js/sb-admin-2.js"></script>

</body>

<script type="text/javascript" src='/apps/dzdjwyadmin/common/js/order.js'></script>


</html>